ComponentOne Data Source for Entity Framework
C1.Data.Entities Namespace / EntityFrameworkExtensions Class / AsLive Method / AsLive<T>(EntityCollection<T>) Method
The type of the entities in the entities.
The entity collection to convert.

In This Topic
    AsLive<T>(EntityCollection<T>) Method
    In This Topic
    Converts an System.Data.Entity.Core.Objects.DataClasses.EntityCollection`1 to an editable live view.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function AsLive(Of T As {Class, System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships})( _
       ByVal entities As System.Data.Entity.Core.Objects.DataClasses.EntityCollection(Of T) _
    ) As View(Of T)
    public static View<T> AsLive<T>( 
       System.Data.Entity.Core.Objects.DataClasses.EntityCollection<T> entities
    )
    where T: class, System.Data.Entity.Core.Objects.DataClasses.IEntityWithRelationships

    Parameters

    entities
    The entity collection to convert.

    Type Parameters

    T
    The type of the entities in the entities.

    Return Value

    The resulting live view.
    See Also